#pragma once

#include "..\..\..\basemodelling.h"
//#include "../../../math/CAMMathBase.h"
#include "../../fe/FECollection.h"

class CEGroupItem
{
public:
	CEGroupItem ():ID(0), FEBase (0){};
	~CEGroupItem (){};
	DWORD ID;
	CFEBase *FEBase;

};


//bool CompareUserID (stEGroup &i, stEGroup &j);
//bool EqualUserID (const stEGroup &i, const DWORD &j);

class CEGroup :
	public CBaseModelling
{
public:
	
	CEGroup(void);
	~CEGroup(void);
	

	bool Add (const DWORD &ID, const wstring &SysName);
	bool Add (const vector<wstring> &Data);

	bool SearchByUserID (const DWORD &UserID_, CEGroupItem &EGroup_);
	CEGroupItem *SearchByUserID_ (const DWORD &UserID_);

	CEGroupItem *Get (const DWORD &Index) ;
	DWORD Count () const;

	CFECollection *FECollections ();


	wstring GetInfo ();
private:

	vector<CEGroupItem> EGroups; 
	
	CFECollection *m_pFECollection;

};

